﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace cashbook_psql_cs
{
    public partial class FrmDetail: Form
    {
        public FrmDetail()
        {
            InitializeComponent();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void FrmDetail_Load(object sender, EventArgs e)
        {
            //手动计算屏幕分辨率居中
            Screen screen = Screen.PrimaryScreen;
            this.Left = (screen.WorkingArea.Width - this.Width) / 2;
            this.Top = (screen.WorkingArea.Height - this.Height) / 2;
        }

        public DataGridView PublicDataGridView
        {
            get { return dataGridView1; }
            set { dataGridView1 = value; }
        }
    }
}
